/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package org.usfirst.frc;

/**
 * Interface inherited by all components running in the iterative main loop
 * @author James
 */
public abstract class ComponentFiber{
    public ComponentFiber(){init();} //Calls initialization, do not override
    public abstract void init(); //Initialization
    //Both of hte execution statements have have endless loops, so long as it calls FRCBot.yield() some way some how during the execution to return to the
    //Main loop.
    public abstract void run() throws Throwable; //Normal Execution of component
    public abstract void debugRun() throws Throwable; //Debug execution of component
}
